#include "systemtraymanager.h"

SystemTrayManager::SystemTrayManager()
{
    //1、转发数据模型更新信号

    //2、

    //3、

    //4、
}

SystemTrayManager::~SystemTrayManager()
{

}

//前端获取托盘图标信息。在watcher添加dbus接口，
void SystemTrayManager::testGetAllItemId()
{
//    qDebug()<<"===== lib库 测试程序: 打印数据模型信息";
//    //打印数据
//    int rowCount = m_dataModel->rowCount();
//    int columnCount = m_dataModel->columnCount();
//    qDebug()<<"===== "<<rowCount<<"行  "<<columnCount<<"列";
//    for (int row = 0; row < rowCount; ++row) {
//        QStandardItem* item = m_dataModel->item(row);
//        if (item) {
//            qDebug()<<"=====Id "<<item->data(StatusNotifierModel::Role::Id).toString();
////            qDebug()<<"=====WindowId "<<item->data(StatusNotifierModel::Role::WindowId).toUInt();
////            qDebug()<<"=====Category "<<item->data(StatusNotifierModel::Role::Category).toString();
////            qDebug()<<"=====Status "<<item->data(StatusNotifierModel::Role::Status).toString();
////            qDebug()<<"=====Title "<<item->data(StatusNotifierModel::Role::Title).toString();
////            qDebug()<<"=====ToolTipTitle "<<item->data(StatusNotifierModel::Role::ToolTipTitle).toString();
////            qDebug()<<"=====IconName "<<item->data(StatusNotifierModel::Role::IconName).toString();
////            qDebug()<<"=====AttentionIconName "<<item->data(StatusNotifierModel::Role::AttentionIconName).toString();
////            qDebug()<<"=====AttentionMovieName "<<item->data(StatusNotifierModel::Role::AttentionMovieName).toString();
//        }
//    }
}

//前端鼠标点击事件
void SystemTrayManager::testActive()
{
//    qDebug()<<"===== lib库 测试程序：测试鼠标动作回传";
//    QList<QMap<QString, StatusNotifierItemSource*>> itemServicesInfo = m_dataModel->getItemServicesInfo();

//    for(int i=0; i<itemServicesInfo.size(); i++) {
//        StatusNotifierItemSource* item = itemServicesInfo.at(i).first();
//        item->activate(1,2);
    //    }
}

void SystemTrayManager::active(int x, int y)
{

}

void SystemTrayManager::contextMenu(int x, int y)
{

}

void SystemTrayManager::secondaryActivate(int x, int y)
{

}

void SystemTrayManager::scroll(int delta, QString orientation)
{

}
